//==================================================================================
//		Dual Quad Board Program
//		file name : TW2824_Table.H
//		version : 1.0
//		target device : w78e516(winbond)
//		target board : dual quad board
//		c compiler : Keil
//==================================================================================

//==================================================================================
//						Page0 initialize table description
//==================================================================================

//==================================================================================
//--------------------------       NTSC      ------------------------------//
//... 4 in 1 Quad size Setting
/*
code U8	tbl_ntsc_page0_common[] = {        
//								    CH1		    CH2		    CH3		    CH4
	0x00,0xc4,0xa5,0x22,	//...		0x00~0x03	0x40~0x43	0x80~0x83	0xc0~0xc3
	0xd0,0x22,0xd0,0x88,	//...		0x04~0x07	0x44~0x47	0x84~0x87	0xc4~0xc7
	0x20,0x07,0xf0,0x07,	//...		0x08~0x0b	0x48~0x4b	0x88~0x8b	0xc8~0xcb
	0xf0,0x00,0xd2,0x80,	//...		0x0c~0x0f		0x4c~0x4f		0x8c~0x8f		0xcc~0xcf
	0x80,0x80,0x80,0x1f,	//...		0x10~0x13	0x50~0x53	0x90~0x93	0xd0~0xd3
	0x50,0xa5,0x00,0x00,	//...		0x14~0x17	0x54~0x57	0x94~0x97	0xd4~0xd7
	0x7f,0xff,0x85,0xff,	//...		0x18~0x1b	0x58~0x5b	0x98~0x9b	0xd8~0xdb
	0x7f,0xff,0x85,0xff,	//...		0x1c~0x1f		0x5c~0x5f		0x9c~0x9f		0xdc~0xdf
	0x07,0x07,0x00,0x11	//...		0x20~0x23	0x60~0x63	0xa0~0xa3	0xe0~0xe3
};

code U8	tbl_page0_single1[] = {
	0x00,0x00,0xf0,0x82,	//... 	0x38~0x3b
	0x80,0x80,0x82,0x82	//... 	0x3c~0x3f
};

code U8	tbl_page0_single2[] = {
	0x00,0x80,0x00,0x00,	//... 	0x78~0x7b
	0x00,0x04,0x00,0x00	//... 	0x7c~0x7f
};

code U8	tbl_page0_single3[] = { 
	0x80,0x00,0x00,0x00,	//... 	0xb8~0xbb
	0x00,0x00,0x00,0x00	//... 	0xbc~0xbf
};

code U8	tbl_page0_single4[] = {
	0x0a,0x40,0x3c,0x10,	//... 	0xf8~0xfb
	0xf0,0x00,0x08,0x00	//... 	0xfc~0xff		///... 0xfc MSB Internal AAF On/Off    "1" -- OFF    "0"--- ON
};
//==================================================================================

//==================================================================================
//						Page1 initialize table description
//==================================================================================
//... Memory Controller Quad size Setting
code U8	tbl_ntsc_page1_inital[] = {
//     00     01    02    03     04     05    06     07		 08     09     0A    0B    0C    0D    0E     0F
		 0x00,0x00,0xa0,0x00,0x00,0x00,0x00,	0x00,0x00,0x00,0x00,0x23,0x2d,0x1e,0xaf	//...  0x01 ~ 0x0f
};

code U8	tbl_ntsc_page1_channel_size[] = {
//     00     01    02    03     04     05    06     07		 08     09     0A    0B    0C    0D    0E     0F
	0x00,0x02,0x00,0x00,0x5a,0x00,0x3c,0x01, 	0x02,0x00,0x5a,0xb4,0x00,0x3c,0x02,0x02,	//...  0x10 ~ 0x1f
	0x00,0x00,0x5a,0x3c,0x78,0x03,0x02,0x00,	0x5a,0xb4,0x3c,0x78						//...  0x20 ~ 0x2b
	
};

code U8	tbl_ntsc_page1_tst_dec1[] = {
//     00     01    02    03     04     05    06     07		 08     09     0A    0B    0C    0D    0E     0F
															    0x00,0x00,0x00,0x00	//...  0x2c ~ 0x2f
};

code U8	tbl_ntsc_page1_tst_dec2[] = {
//     00     01    02    03     04     05    06     07		 08     09     0A    0B    0C    0D    0E     0F
															    0x80,0x00,0x00,0x06	//...  0x5c ~ 0x5f
};
*/
/*code U8	tbl_ntsc_page1_dummy[] = {
//... Dummy Channel Boundary
//     00     01    02    03     04     05    06     07		 	08     09     0A    0B    0C    0D    0E     0F
	0x00, 0x2d, 0x1e, 0x3c, 0x2d, 0x5a, 0x1e, 0x3c,	0x5a, 0x87,0x1e,0x3c,0x87,0xb4,0x1e,0x3c	//...  0x60 ~ 0x6f
};*/
/*code U8	tbl_ntsc_realtime_8ch_page1[] = {
//... Dummy Channel Boundary
//     00     01    02    03     04     05    06     07		 08     09     0A    0B    0C    0D    0E     0F
	0x78,0xb4,0x28,0x50,0x00,0x3c,0x50,0x78,	0x3c,0x78,0x50,0x78,0x78,0xb4,0x50,0x78	//...  0x60 ~ 0x6f
};*/
/*
code U8	tbl_ntsc_page1_enc[] = {
//     00     01    02    03     04     05    06     07		 08     09     0A    0B    0C    0D    0E     0F
	0x77,0x53,0x01,0x80,0x10,0x00,0x7c,0x09,	0xaa,0x00								// ... 0x70 ~ 0x79 
};
//... 1x77 -> 0x01 non-interace mode
//... 1x77 -> 0x09interace mode
//==================================================================================
//						Page2 initialize table description
//==================================================================================
code U8	tbl_page2_cur_3d_box[] = {
//     00     01    02    03     04     05    06     07		 08     09     0A    0B    0C    0D    0E     0F
	0x00,0x00,0x00,0x0f,0x99,0x05,0x67,0x00,	0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,	//...  0x00 ~ 0x0f
	0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,	0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,	//...  0x10 ~ 0x1f
	0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,	0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,	//...  0x20 ~ 0x2f
	0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,	0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,	//...  0x30 ~ 0x3f
	0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,	0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,	//...  0x40 ~ 0x4f
	0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,	0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00	//...  0x50 ~ 0x5f
};


code U8	tbl_ntsc_page2_ary_box[] = {		//... count 29
	0x3a,									//... 0x60
	0x68,0x00,0x01,0x09,0x0a,0xbf,0x00,		//... 0x61 ~ 0x67
	0x68,0x00,0x5b,0x09,0x0a,0xbf,0x00,		//... 0x68 ~ 0x6e
	0x68,0x3c,0x01,0x09,0x0a,0xbf,0x00,		//... 0x6f ~ 0x75
	0x68,0x3c,0x5b,0x09,0x0a,0xbf,0x00			//... 0x76 ~ 0x7c
};


code U8	tbl_page2_motion[] = {				//... count 130
	0x00,0x17,								//... 0x7e ~ 0x7f
	0x00,0x4a,0x87,0x24,0x00,0x00,0x00,0x00,	//... 0x80 ~ 0x87
	0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,	//... 0x88 ~ 0x8f
	0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,	//... 0x90 ~ 0x97
	0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,	//... 0x98 ~ 0x9f
	0x00,0x4a,0x07,0x24,0x00,0x00,0x00,0x00,	//... 0xa0 ~ 0xa7
	0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,	//... 0xa8 ~ 0xaf
	0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,	//... 0xb0 ~ 0xb7
	0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,	//... 0xb8 ~ 0xbf
	0x00,0x4a,0x07,0x24,0x00,0x00,0x00,0x00,	//... 0xc0 ~ 0xc7
	0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,	//... 0xc8 ~ 0xcf
	0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,	//... 0xd0 ~ 0xd7
	0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,	//... 0xd8 ~ 0xdf
	0x00,0x4a,0x07,0x24,0x00,0x00,0x00,0x00,	//... 0xe0 ~ 0xe7
	0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,	//... 0xe8 ~ 0xef
	0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,	//... 0xf0 ~ 0xf7
	0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00	//... 0xf8 ~ 0xff
};




//*********************************************************************************************************



//==================================================================================
//						Page0 initialize table description
//==================================================================================
//... 4 in 1 Quad size Setting
//--------------------------       PAL      ------------------------------//
code U8	tbl_pal_page0_common[] = {        
//								    CH1		    CH2		    CH3		    CH4
	0x00,0x84,0xa5,0x2d,	//...		0x00~0x03	0x40~0x43	0x80~0x83	0xc0~0xc3
	0xd0,0x2d,0xd0,0x88,	//...		0x04~0x07	0x44~0x47	0x84~0x87	0xc4~0xc7
	0x20,0x08,0x20,0x08,	//...		0x08~0x0b	0x48~0x4b	0x88~0x8b	0xc8~0xcb
	0x20,0x0a,0xd2,0x80,	//...		0x0c~0x0f		0x4c~0x4f		0x8c~0x8f		0xcc~0xcf
	0x80,0x80,0x80,0x2f,	//...		0x10~0x13	0x50~0x53	0x90~0x93	0xd0~0xd3
	0x50,0xa0,0x00,0xc0,	//...		0x14~0x17	0x54~0x57	0x94~0x97	0xd4~0xd7
	0x7f,0xff,0x85,0xff,	//...		0x18~0x1b	0x58~0x5b	0x98~0x9b	0xd8~0xdb
	0x7f,0xff,0x85,0xff,	//...		0x1c~0x1f		0x5c~0x5f		0x9c~0x9f		0xdc~0xdf
	0x07,0x07,0x00,0x91	//...		0x20~0x23	0x60~0x63	0xa0~0xa3	0xe0~0xe3
};
//==================================================================================


//==================================================================================
//						Page1 initialize table description
//==================================================================================
//... Memory Controller Quad size Setting
code U8	tbl_pal_page1_inital[] = {
//     00     01    02    03     04     05    06     07		 08     09     0A    0B    0C    0D    0E     0F
		 0x00,0x00,0xa0,0x00,0x00,0x00,0x00, 	0x00,0x00,0x00,0x00,0x23,0x2d,0x24,0xaf,	//...  0x00 ~ 0x0f
};

code U8	tbl_pal_page1_channel_size[] = {
//     00     01    02    03     04     05    06     07		 08     09     0A    0B    0C    0D    0E     0F	
	0x00,0x02,0x00,0x00,0x5a,0x00,0x48,0x01,	0x02,0x00,0x5a,0xb4,0x00,0x48,0x02,0x02,	//...  0x10 ~ 0x1f
	0x00,0x00,0x5a,0x48,0x90,0x03,0x02,0x00,	0x5a,0xb4,0x48,0x90						//...  0x20 ~ 0x2b	
};

code U8	tbl_pal_page1_tst_dec1[] = {
//     00     01    02    03     04     05    06     07		 08     09     0A    0B    0C    0D    0E     0F
															    0x20,0x00,0x00,0x00	//...  0x2c ~ 0x2f
};

code U8	tbl_pal_page1_tst_dec2[] = {
//     00     01    02    03     04     05    06     07		 08     09     0A    0B    0C    0D    0E     0F
															    0x00,0x00,0x00,0x06	//...  0x5c ~ 0x5f
};*/

/*code U8	tbl_pal_realtime_8ch_page1[] = {		
//... Dummy Channel Boundary
//     00     01    02    03     04     05    06     07		 08     09     0A    0B    0C    0D    0E     0F
	0x78,0xb4,0x30,0x60,0x00,0x3c,0x60,0x90,	0x3c,0x78,0x60,0x90,0x78,0xb4,0x60,0x90	//...  0x60 ~ 0x6f//gzy
};*/
/*code U8	tbl_pal_page1_dummy[] = {
//... Dummy Channel Boundary
//     00     01    02    03     04     05    06     07		 08     09     0A    0B    0C    0D    0E     0F
	0x00,0x2d,0x24,0x48,0x2d,0x5a,0x24,0x48,	0x5a,0x87,0x24,0x48,0x87,0xb4,0x24,0x48	//...  0x60 ~ 0x6f//gzy
};*/
/*code U8	tbl_pal_page12_dummy[] = {
//... Dummy Channel Boundary
//     00     01    02    03     04     05    06     07		 08     09     0A    0B    0C    0D    0E     0F
	0x00,0x2d,0x6c,0x90,0x2d,0x5a,0x6c,0x90,	0x5a,0x87,0x6c,0x90,0x87,0xb4,0x6c,0x90	//...  0x60 ~ 0x6f//gzy
};*/
/*code U8	tbl_ntsc_page12_dummy[] = {
//... Dummy Channel Boundary
//     00     01    02    03     04     05    06     07		 08     09     0A    0B    0C    0D    0E     0F
	0x00,0x2d,0x5a,0x78,0x2d,0x5a,0x5a,0x78,	0x5a,0x87,0x5a,0x78,0x87,0xb4,0x5a,0x78	//...  0x60 ~ 0x6f//gzy
};*/

/*
code U8	tbl_pal_page1_enc[] = {
//     00     01    02    03     04     05    06     07		 08     09     0A    0B    0C    0D    0E     0F
	0x77,0x53,0x01,0x80,0x10,0x00,0x7c,0x4c,	0xaa,0x00								// ... 0x70 ~ 0x79
};
//... 1x77 -> 0x44 non-interace mode
//... 1x77 -> 0x4c interace mode
//==================================================================================
/*
//==================================================================================
//						Page2 initialize table description
//==================================================================================

code U8	tbl_pal_page2_ary_box[] = {			//... count 29
	0x3a,									//... 0x60	
	0x68,0x00,0x01,0x0b,0x0a,0xbf,0x00,		//... 0x61 ~ 0x67
	0x68,0x00,0x5b,0x0b,0x0a,0xbf,0x00,		//... 0x68 ~ 0x6e
	0x68,0x48,0x01,0x0b,0x0a,0xbf,0x00,		//... 0x6f ~ 0x75
	0x68,0x48,0x5b,0x0b,0x0a,0xbf,0x00			//... 0x76 ~ 0x7c		
};*/

//==================================================================================
//						Factory Reset initialize table description
//
//
//
//
//==================================================================================
code U8	tbl_factory_reset1[] = {
//     00     01    02    03     04     05    06     07		 08     09     0A    0B    0C    0D    0E     0F
	0x01,0x01,0x00,0x01,0x01,0x01,0x04,0x01,     	0x21,0x80,0x80,0x80,0x80,0x01,0x00,0x80,		//...  0x00 ~ 0x0f
	0x80,0x80,0x80,0x01,0x00,0x80,0x80,0x80,     	0x80,0x01,0x00,0x80,0x80,0x80,0x80,0x01,		//...  0x10 ~ 0x1f
	0x00,0x80,0x80,0x80,0x80,0x01,0x00,0x80,    	0x80,0x80,0x80,0x01,0x00,0x80,0x80,0x80,		//...  0x20 ~ 0x2f
	0x80,0x01,0x00,0x80,0x80,0x80,0x80,0x01,     	0x00,0x80,0x80,0x80,0x80,0x01,0x00,0x80,		//...  0x30 ~ 0x3f
	0x80,0x80,0x80,0x01,0x00,0x80,0x80,0x80,	0x80,0x01,0x00,0x80,0x80,0x80,0x80,0x01,		//...  0x40 ~ 0x4f
	0x00,0x80,0x80,0x80,0x80,0x01,0x00,0x80,	0x80,0x80,0x80,0x01,0x00,0x80,0x80,0x80,		//...  0x50 ~ 0x5f
	0x80,0x01,0x00,0x80,0x80,0x80,0x80,0x01,	0x00,0x01,0x00,0x00,0x00,0x00,0x01,0x00,		//...  0x60 ~ 0x6f
	0x00,0x00,0x00,0x01,0x00,0x00,0x00,0x00,	0x01,0x00,0x00,0x00,0x00,0x00,0xff,0x00,		//...  0x70 ~ 0x7f
	0x00,0xff,0x00,0x05,0x1e,0x00,0x01,0x0f,	0x03,0x02,0x0b,0x00,0x0c,0x00,0x08,0x08,		//...  0x80 ~ 0x8f
	0x02,0x0b,0x00,0x0c,0x00,0x08,0x08,0x02,	0x0b,0x00,0x0c,0x00,0x08,0x08,0x02,0x0b,		//...  0x90 ~ 0x9f
	0x00,0x0c,0x00,0x08,0x08,0x02,0x0b,0x00,	0x0c,0x00,0x08,0x08,0x02,0x0b,0x00,0x0c,		//...  0xa0 ~ 0xaf
	0x00,0x08,0x08,0x02,0x0b,0x00,0x0c,0x00,     	0x08,0x08,0x02,0x0b,0x00,0x0c,0x00,0x08,		//...  0xb0 ~ 0xbf
	0x08,0x02,0x0b,0x00,0x0c,0x00,0x08,0x08,	0x02,0x0b,0x00,0x0c,0x00,0x08,0x08,0x02,		//...  0xc0 ~ 0xcf
	0x0b,0x00,0x0c,0x00,0x08,0x08,0x02,0x0b,	0x00,0x0c,0x00,0x08,0x08,0x02,0x0b,0x00,		//...  0xd0 ~ 0xdf
	0x0c,0x00,0x08,0x08,0x02,0x0b,0x00,0x0c,	0x00,0x08,0x08,0x02,0x0b,0x00,0x0c,0x00,		//...  0xe0 ~ 0xef
	0x08,0x08,0x02,0x0b,0x00,0x0c,0x00,0x08,	0x08,0x01,0x01,0x02,0x01,0x01,0x23,0x00,						//...  0xf0 ~ 0xff
};
/*
code U8	tbl_factory_reset2[] = {
//     00     01    02    03     04     05    06     07		 08     09     0A    0B    0C    0D    0E     0F
	0x0c,0x0a,0x16,0x0e,0x1b,0x0a,0x00,0x01,     0x0c,0x0a,0x16,0x0e,0x1b,0x0a,0x00,0x02,		//...  0xc0 ~ 0xcf
	0x0c,0x0a,0x16,0x0e,0x1b,0x0a,0x00,0x03,     0x0c,0x0a,0x16,0x0e,0x1b,0x0a,0x00,0x04,		//...  0xd0 ~ 0xdf
	0x0c,0x0a,0x16,0x0e,0x1b,0x0a,0x00,0x05,     0x0c,0x0a,0x16,0x0e,0x1b,0x0a,0x00,0x06,		//...  0xe0 ~ 0xef
	0x0c,0x0a,0x16,0x0e,0x1b,0x0a,0x00,0x07,     0x0c,0x0a,0x16,0x0e,0x1b,0x0a,0x00,0x08			//...  0xf0 ~ 0xff
};*/
//==================================================================================

